package cn.neo.support.smartadapters.adapters;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

import cn.neo.support.smartadapters.views.BindableImageView;


/**
 * <b>Name:</b>xx页面<br>
 * <b>Author:</b> WK（wangkun@xjzhicheng.com)<br>
 * <b>Date:</b>  2017-03-09<br>
 * <b>Describe:</b><p> PLEASE TO FIXME...</p><br>
 * <p>代码说明：（重点）<br>
 * <ol>
 * <li> write something content..</li>
 * </ol>
 * </p>
 * <b>Version:</b>V1.0<br>
 * <b>Revision History:</b>
 * <ul>
 * v1.x<li>1.write something content..。<br>2.write something content..<br>3.write something content..<br></li>
 * </ul>
 * <br>
 */
public abstract class BaseAdapterItemView4IV<T> extends BindableImageView<T> {

    public BaseAdapterItemView4IV(Context context) {
        super(context);
    }

    public BaseAdapterItemView4IV(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public BaseAdapterItemView4IV(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void notifyItemAction(int actionId, T theItem, View view) {
        if (this.viewEventListener != null) {
            this.viewEventListener.onViewEvent(actionId, theItem, this.position, view);
        }

    }

    public void notifyItemAction(int actionId, View view) {
        this.notifyItemAction(actionId, this.item, view);
    }

    public void notifyItemAction(int actionId) {
        this.notifyItemAction(actionId, this.item, this);
    }
}
